using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// Photo_List - 照片列表 - 对象继承类
    /// </summary>
    [MetadataType(typeof(PhotoListValidaTion))]
    public class PhotoList : IPhotoList<PhotoList>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class PhotoListValidaTion
       {

     

        /// <summary>
        /// 图片ID
        /// </summary>
        [Display(Name ="图片ID")]
        [Required]
        [StringLength(36)]
        public String PhotoId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 用户ID
        /// </summary>
        [Display(Name ="用户ID")]
        [Required]
        [StringLength(36)]
        public String UserId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 相册ID
        /// </summary>
        [Display(Name ="相册ID")]
        [Required]
        [StringLength(36)]
        public String AlbumId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 标题
        /// </summary>
        [Display(Name ="标题")]
        [Required]
        [StringLength(100)]
        public String Title
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 说明
        /// </summary>
        [Display(Name ="说明")]
        [StringLength(500)]
        public String Detailed
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 上传时间
        /// </summary>
        [Display(Name ="上传时间")]
        [Required]

        public DateTime SubmitTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否关闭评论
        /// </summary>
        [Display(Name ="是否关闭评论")]
        [Required]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType IsCloseComment
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 排序
        /// </summary>
        [Display(Name ="排序")]
        [Required]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public int Sno
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
